import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import request from './common/request.js'
import { IMAGE_BASE_URL } from './utils/config.js';
Vue.config.productionTip = false
Vue.prototype.$request = request
Vue.prototype.$IMAGE_BASE_URL = IMAGE_BASE_URL;
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import { IMAGE_BASE_URL } from './utils/config.js';
import store from './store'
export function createApp() {
  const app = createSSRApp(App)
  app.use(store)
  app.config.globalProperties.$IMAGE_BASE_URL = IMAGE_BASE_URL;
  return {
    app
  }
}
// #endif